package org.lex.reflect.browsing.model;

import java.io.File;
import java.util.HashSet;
import java.util.Set;

public class ClassPath {
	private File file = null;
	private Set<String> classNames = null;

	public ClassPath(File file) {
		this(file, null);
	}

	public ClassPath(File file, Set<String> classNames) {
		this.file = file;
		if (null == classNames) {
			classNames = new HashSet<String>();
		}
		this.classNames = classNames;
	}

	public File getFile() {
		return file;
	}

	public Set<String> getClassNames() {
		return classNames;
	}

	public String toString() {
		return "[ClassPath path=" + file + " #classes=" + classNames.size() + "]";
	}
}
